package com.parktech.sun.domain.model.report;

import com.parktech.sun.domain.model.sunhz.Enterprise;
import com.parktech.sun.domain.model.system.User;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: guo
 * Date: 11-1-16
 * Time: 下午8:38
 * To change this template use File | Settings | File Templates.
 */
@Entity
public class KeyTechnicReformInvestStatus implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    @ManyToOne
    @JoinColumn(name = "enterprise_id",nullable = false)
    private Enterprise enterprise;

    private String name;

    private String content;

    private String planInvestMoney;

    private String projectStartAndEndDate;

    private String lastYearInvestMoney;

    private String nextYearInvestMoney;

    private String contactMemberName;

    private String contactMemberPhone;

    @Column(nullable = false)
    private String countYear;

    @Column(nullable = false)
    private String countHalfYear;

    @Column(nullable = false)
    private Date createDatetime = new Date();

    @Column(nullable = false)
    private Date updateDatetime = new Date();

    @ManyToOne
    @JoinColumn(name = "creator_id")
    private User creator;

    @ManyToOne
    @JoinColumn(name = "modifier_id")
    private User modifier;

    private String description;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPlanInvestMoney() {
        return planInvestMoney;
    }

    public void setPlanInvestMoney(String planInvestMoney) {
        this.planInvestMoney = planInvestMoney;
    }

    public String getProjectStartAndEndDate() {
        return projectStartAndEndDate;
    }

    public void setProjectStartAndEndDate(String projectStartAndEndDate) {
        this.projectStartAndEndDate = projectStartAndEndDate;
    }

    public String getLastYearInvestMoney() {
        return lastYearInvestMoney;
    }

    public void setLastYearInvestMoney(String lastYearInvestMoney) {
        this.lastYearInvestMoney = lastYearInvestMoney;
    }

    public String getNextYearInvestMoney() {
        return nextYearInvestMoney;
    }

    public void setNextYearInvestMoney(String nextYearInvestMoney) {
        this.nextYearInvestMoney = nextYearInvestMoney;
    }

    public String getContactMemberName() {
        return contactMemberName;
    }

    public void setContactMemberName(String contactMemberName) {
        this.contactMemberName = contactMemberName;
    }

    public String getContactMemberPhone() {
        return contactMemberPhone;
    }

    public void setContactMemberPhone(String contactMemberPhone) {
        this.contactMemberPhone = contactMemberPhone;
    }

    public String getCountYear() {
        return countYear;
    }

    public void setCountYear(String countYear) {
        this.countYear = countYear;
    }

    public String getCountHalfYear() {
        return countHalfYear;
    }

    public void setCountHalfYear(String countHalfYear) {
        this.countHalfYear = countHalfYear;
    }

    public Date getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(Date createDatetime) {
        this.createDatetime = createDatetime;
    }

    public Date getUpdateDatetime() {
        return updateDatetime;
    }

    public void setUpdateDatetime(Date updateDatetime) {
        this.updateDatetime = updateDatetime;
    }

    public User getCreator() {
        return creator;
    }

    public void setCreator(User creator) {
        this.creator = creator;
    }

    public User getModifier() {
        return modifier;
    }

    public void setModifier(User modifier) {
        this.modifier = modifier;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}